﻿using Rsd.Dudu.ModelProvider;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rsd.Faith.Models
{

    /// <summary>
    ///   增值（或称统筹）金额 - 支出：派息分户 或 拨款统筹账户
    ///   管理中心 将利息分派到 小区楼栋，楼栋单元，分户
    /// </summary>
    [Table("bank_利息分派", "bank__zeng_zhi_pai_xi", "id")]
    [Serializable]
    public class BankZengZhiPaiXiModel : Rsd.Faith.Core.ModelBase
    {
        /// <summary>
        /// 资金所在银行名称
        /// </summary>
        [StringType("yin_hang_ming_cheng", "资金所在银行名称", 20, 100)]
        [DisplayName("资金所在银行名称")]
        public string YinHangMingCheng { get; set; }

        /// <summary>
        /// 银行账号
        /// </summary>
        [StringType("yin_hang_zhang_hao", "银行账号", 22, 20)]
        [DisplayName("资金所在银行账号")]
        public string YinHangZhangHao { get; set; }

        /// <summary>
        /// 收益归属所属期 
        /// </summary>
        [StringType("suo_su_qi", "收益归属所属期", 24, 255)]
        [DisplayName("收益归属所属期")]
        public string SuoShuQi { get; set; }
        /// <summary>
        /// 小区编号 不指定小区编号 表示所有分户
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("xiao_qu_bian_hao", "小区编号", 26, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        /// 楼栋号  不指定楼栋号 表示该小区所有分户
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("lou_dong_hao", "楼栋号", 28, 20)]
        [DisplayName("楼栋号")]
        public string LouDongHao { get; set; }

        /// <summary>
        /// 单元号 不指定单元号 表示该楼栋所有分户
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("dan_yuan_hao", "单元号", 30, 20)]
        [DisplayName("单元号")]
        public string DanYuanHao { get; set; }
         
        /// <summary>
        /// 派息账户编号 （无账户编号表示派息到整个单元或楼栋或小区或全部账户）
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("zhang_hu_bian_hao", "派息账户编号", 32, 50)]
        [DisplayName("派息账户编号")]
        public string ZhangHuBianHao { get; set; }

        /// <summary>
        /// 派息金额 
        /// </summary>
        [NumericType("pai_xi_jin_e", "派息金额", 34, 10, 2)]
        [DisplayName("派息金额")]
        public decimal PaiXiJinE { get; set; }
         
        /// <summary>
        /// 
        /// </summary>
        [StringType("zhuang_tai", "状态", 36, 10, "未入账")]
        [DisplayName("状态")]
        public PaiXiZhuangTai ZhuangTai { get; set; }

        /// <summary>
        /// 派息说明 最好写在remark中
        /// </summary>
        public BankZengZhiPaiXiModel()
        { }

    }
}
